An O(n log n) Algorithm for a Load Balancing Problem on Paths

نویسندگان

  • Nikhil R. Devanur
  • Uriel Feige
چکیده

We study the following load balancing problem on paths (PB). There is a path containing n vertices. Every vertex i has an initial load hi, and every edge (j, j + 1) has an initial load wj that it needs to distribute among the two vertices that are its endpoints. The goal is to distribute the load of the edges over the vertices in a way that will make the loads of the vertices as balanced as possible (formally, minimizing the sum of squares of loads of the vertices). This problem can be solved in polynomial time, e.g, by dynamic programming. We present an algorithm that solves this problem in time O(n logn). As a mental aide in the design of our algorithm, we first design a hydraulic apparatus composed of bins (representing vertices), tubes (representing edges) that are connected between bins, cylinders within the tubes that constrain the flow of water, and valves that can close the connections between bins and tubes. Water may be poured into the various bins, to levels that correspond to the initial loads in the input to the PB problem. When all valves are opened, the water flows between bins (to the extent that is feasible due to the cylinders) and stabilizes at levels that are the correct output to the respective PB problem. Our algorithm is based on a fast simulation of the behavior of this hydraulic apparatus, when valves are opened one by one.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Competitive Source Routing on Tori and Meshes

We study the source routing problem on p N p N tori and meshes. In this problem, the paths for packets are the shortest ones. And the routing decision is distributed in a way that the path designated to a packet is determined entirely on its source node, with no knowledge of the other packets injected to other nodes and the system load distribution. The cost we concern about is the maximum load...

متن کامل

An interior-point algorithm for $P_{ast}(kappa)$-linear complementarity problem based on a new trigonometric kernel function

In this paper, an interior-point algorithm  for $P_{ast}(kappa)$-Linear Complementarity Problem (LCP) based on a new parametric trigonometric kernel function is proposed. By applying strictly feasible starting point condition and using some simple analysis tools, we prove that our algorithm has $O((1+2kappa)sqrt{n} log nlogfrac{n}{epsilon})$ iteration bound for large-update methods, which coinc...

متن کامل

Emulating Small-World Networks on Content-Addressable Networks

Distributed Hash Tables (DHTs) are prevalently used in resolving the routing problem in peer-to-peer networks. Many schemes achieve short routing paths with small state per node, considering dynamic networks, yet performs in a complicated way except CAN. Kleinberg’s small-world networks are a family of random graphs allowing short routing paths. We emulated small-world networks on CAN to catch ...

متن کامل

An O(m 0 Log M 0 ) Algorithm for a Chain-like Task System

The optimal allocation of a chain-like task system on a chain-like network computers has been studied in a number of papers 1]]2]]3]]4]. The best known algorithm has a time complexity of O((m 0 ? n) 2 n) if m ? n = O(p log n); otherwise O(m 0 log m 0 + m 0 (m 0 ? n)) where m 0 and n denote the number of un-mergeable modules and the number of processors respectivelyy4]. The space complexity of H...

متن کامل

Single-Point Visibility Constraint Minimum Link Paths in Simple Polygons

We address the following problem: Given a simple polygon $P$ with $n$ vertices and two points $s$ and $t$ inside it, find a minimum link path between them such that a given target point $q$ is visible from at least one point on the path. The method is based on partitioning a portion of $P$ into a number of faces of equal link distance from a source point. This partitioning is essentially a shor...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2011